def say(self,name):
    print(f'my name is {name}')

def test_2(self):
    print('实例方法.....')

#类方法
@classmethod
def test_3(cls):
    print('...这是类方法...')

#静态方法
@staticmethod
def stac():
    print('静态方法....')
User=type('User',(),{'name':'AK','say':say})
user=User()
user.say(user.name)

Test3=type('Test3',(),{'test_2':test_2})
t3=Test3()
t3.test_2()

Test4=type('Test3',(),{'test_2':test_2,'test_3':test_3})
print(help(Test4))